<!--sidebar-->
<aside id="sidebar" class="pull-right span4">
    <!--<section>-->
        <!--<h3 class="widget-title">Ready to Purchase</h3>-->
        <!--<p>Lorem ipsum dolor sit amet, consect <a href="#">etuer adipi scing</a> elit, sed diam nonummy nibh euis mod tinci dunt ut laoreet dolore magna</p>-->
        <!--<a href="#" class="btn btn-large btn-danger">Purchase</a>-->
    <!--</section>-->
    <!--分类-->
    <section>
        <h3 class="widget-title">分类</h3>
        <ul class="icons ul-list">
            {volist name="categories" id="category"}
            <li><a href="/blog_0_{$category.id}_0.html">{$category.name}</a></li>
            {/volist}
        </ul>
    </section>
    <section class="popular-posts">
        <h3 class="widget-title">最新评论</h3>
        {volist name="comments" id="comment"}
        <div class="media">
            <a class="pull-left" href="./blog-single.html">
                <img class="media-object" src="{if condition='$comment.is_anonymous eq 0 AND $comment.user.image AND $comment.user.image.type neq 3'}{$comment.user.image.url}{else/}/images/unknow.png{/if}" alt="" style="width:40px;height:40px;border-radius:50%"/>
                <span class="frame-overlay"></span>
            </a>
            <div class="media-body">
                <h4 class="media-heading">
                    <a href="{:url('index/Index/article', ['id'=>$comment['article_id']])}#comments" title="{$comment.article.title}">
                        {$comment.article.title|mb_substr=0,20}...
                    </a>
                </h4>
                <p>{$comment.comment}</p>
            </div>
        </div>
        {/volist}
    </section>
    <section>
        <h3 class="widget-title">历史文章</h3>
        <div class="accordion" id="accordion2">
            {volist name="ym_data" id="vo"}
            <div class="accordion-group">
                <div class="accordion-heading">
                    <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse{$i}">
                        <i class="icon-minus icon-white"></i>
                        {$key}
                    </a>
                </div>
                <div id="collapse{$i}" class="accordion-body collapse {$i==1?'in':''}">
                    <div class="accordion-inner">
                        <ul class="icons ul-list-2">
                            {volist name="vo" id="article"}
                            <li><a href="{:url('index/Index/article', ['id'=>$article['id']])}" title="{$article.title}">{$article.title|mb_substr=0,30}</a></li>
                            {/volist}
                        </ul>
                    </div>
                </div>
            </div>
            {/volist}
        </div>
    </section>
    <!--标签云-->
    <section>
        <h3 class="widget-title">标签云</h3>
        <div class="tags">
            {volist name="tags" id="tag"}
            <a href="/blog_0_0_{$tag.id}.html"><i class="icon-tag icon-white"></i>{$tag.name}</a>
            {/volist}
        </div>
    </section>

</aside>